package rtdb;

import rtdb.cim.CimKeys;
import rtdb.measure.MeasureKeys;

/**
 * Created by IntelliJ IDEA.
 * User: Dong Shufeng
 * Date: 11-8-19
 */
public class IdCreator implements MeasureKeys, CimKeys {
    public static String createAnalogId(String point, String instance) {
        return point + "_" + instance + SUFFIEX_SCADA_ANALOG;
    }

    public static String createDiscreteId(String point, String instance) {
        return point + "_" + instance + SUFFIEX_SCADA_DISCRETE;
    }

    public static String createSeAnalogId(String point, String instance) {
        return point + "_" + instance + SUFFIEX_SE_ANALOG;
    }

    public static String createSeDiscreteId(String point, String instance) {
        return point + "_" + instance + SUFFIEX_SE_DISCRETE;
    }

    public static String createCompensatorState(String compensatorId) {
        return compensatorId + SUFFIX_COMPENSATOR_STATE;
    }

    public static String createStationGenMw(String stationId) {
        return stationId + SUFFIX_SUBSTATION_GEN_MW;
    }

    public static String createStationGenMvar(String stationId) {
        return stationId + SUFFIX_SUBSTATION_GEN_MVAR;
    }

    public static String createStationCapMvar(String stationId) {
        return stationId + SUFFIX_SUBSTATION_CAPACITOR_MVAR;
    }

    public static String createStationReactorMvar(String stationId) {
        return stationId + SUFFIX_SUBSTATION_REACTOR_MVAR;
    }

    public static String createCapacitorMvar(String stationId) {
        return stationId + SUFFIX_CAPACITOR_MVAR;
    }

    public static String createReactorMvar(String stationId) {
        return stationId + SUFFIX_REACTOR_MVAR;
    }

    public static String createStationGenMwAbility(String stationId) {
        return stationId + SUFFIX_SUBSTATION_GEN_MW_ABILITY;
    }

    public static String createStationGenMvarAbility(String stationId) {
        return stationId + SUFFIX_SUBSTATION_GEN_MVAR_ABILITY;
    }

    public static String createStationCapMvarAbility(String stationId) {
        return stationId + SUFFIX_SUBSTATION_CAPACITOR_MVAR_ABILITY;
    }

    public static String createStationReactorMvarAbility(String stationId) {
        return stationId + SUFFIX_SUBSTATION_REACTOR_MVAR_ABILITY;
    }
}
